package com.hddx.util;

import com.hddx.domain.Person;
import org.springframework.beans.factory.FactoryBean;

//public class BeanFactory {
//    public static Person createPerson() {
//        return new Person("张三");
//    }
public class  BeanFactory implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return new Person("张三");

    }
    @Override
    public Class<?> getObjectType() {
        return Person.class;

    }
}

